import { Button } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'

import styles from './index.module.css'

export default function OtherPage() {
  const navigate = useNavigate()

  function handleBack() {
    navigate(-1)
  }

  return (
    <div className={styles.page}>
      <div className={styles.content}>
        <h3>其他页面</h3>
        <Button color="primary" onClick={handleBack}>
          返回
        </Button>
      </div>
    </div>
  )
}
